package org.example.studentmanager.service;

import org.example.studentmanager.entity.CourseSelectionsStudent;
import org.example.studentmanager.entity.Score;
import org.example.studentmanager.entity.Student;

import java.util.List;

public interface StudentService {
    List<Score> getScores(Integer id);

    List<CourseSelectionsStudent> getCourseSelectionsByStudentId(Integer studentId);

    Student getStudentById(Integer userId);

    int batchSelectCourses(List<CourseSelectionsStudent> selections);

    Boolean dropCourse(Integer studentId, Integer courseId);

    List<CourseSelectionsStudent> getCourseSelectionsWithDetails(Integer studentId);

    /**
     * 全新方法：根据学生 ID 查询选课信息
     * @param studentId 学生 ID
     * @return 选课信息列表
     */
    List<CourseSelectionsStudent> getNewCourseSelectionsByStudentId(Integer studentId);
}
